//
//  HMProfileController.swift
//  Weibo
//
//  Created by 吴少飞 on 16/9/19.
//  Copyright © 2016年 wushaofei. All rights reserved.
//

import UIKit

class HMProfileController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !isLogin {
            
            vistorView?.replaceText(imageName: "visitordiscover_image_profile", messages: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }else{
            
            self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", imageName: nil, target: self, action: #selector(pushAction))

            
        }
            }

    func pushAction() {
        
        let textVC = HMTestViewController()
        
        navigationController?.pushViewController(textVC, animated: true)
        
    }
   


}
